//
//  LineNodeSmallCCell.m
//  ImGuider
//
//  Created by 李陆涛 on 2018/1/5.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "LineNodeSmallCCell.h"

@interface LineNodeSmallCCell ()
@property (weak, nonatomic) IBOutlet UIImageView *lineImageView;
@property (weak, nonatomic) IBOutlet UILabel *listenCount;
@property (weak, nonatomic) IBOutlet UILabel *lineNameLabel;
@property (weak, nonatomic) IBOutlet UIView *listenView;

@end

@implementation LineNodeSmallCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.listenView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.4];
}

- (void)setModel:(LineModel *)model {
    _model = model;
    
    [self.lineImageView setImageURL:[NSURL URLWithString:[model.pictureArray firstObject]] placeholderImage:kPlaceholderRec];
    self.lineNameLabel.text = model.linename;
    self.listenCount.text = model.recordcount;
}


@end
